package com.huaxiafinance.management.service;

import com.huaxiafinance.management.dto.request.QueryRoleDto;
import com.huaxiafinance.management.model.Role;
import com.huaxiafinance.management.util.MessageResult;

import java.util.List;

public interface RoleService {

  public boolean addRole(Role role) throws Exception;

  public List<Role> queryRole(QueryRoleDto dto) throws Exception;

  public int countRole(QueryRoleDto dto) throws Exception;

  public boolean updateRole(Role role) throws Exception;

  public MessageResult delRole(Integer id) throws Exception;
}
